package com.yike.user.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备表
 *
 * @author yike
 * @since 2024-11-28
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "设备信息")
public class MachineDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Excel(name = "代理商编号", width = 15)
    private String agentNo;

    @Excel(name = "店铺编号", width = 15)
    private String shopNo;

    @Excel(name = "名称", width = 15)
    private String name;

    @Excel(name = "设备编号", width = 15)
    private String macNo;

    @Excel(name = "序列号", width = 15)
    private String macSn;

    @Excel(name = "型号", width = 15)
    private String model;

    @Excel(name = "备注", width = 15)
    private String remark;

    @Excel(name = "绑定时间", width = 15)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bindTime;

}
